sum of array of numbers in python